﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Smtp_server
{
    public partial class EmailListView : Form
    {
        DBagent dbagent;

        public EmailListView(DBagent dbagent)
        {
            InitializeComponent();
            this.dbagent = dbagent;
            this.dataGrid1.DataSource = (System.Windows.Forms.BindingSource)dbagent.emailBindingSource;
        }

        private void EmailListView_Load(object sender, EventArgs e)
        {
            
             this.dataGrid1.Update();
        }

        private void btnRefresh_Click(object sender, EventArgs e)
        {
            this.dataGrid1.Update();

        }



    }
}